﻿@{
    Layout = "~/Views/Shared/_LayoutPageAdmin.cshtml";
}

@model abc.Models.Country

<div id="page-wrapper">
    <div class="container-fluid">


        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2 class="panel-title">Countries</h2>
                </div>
                <div class="panel-body">

                    @{
                        using (@Html.BeginForm("SaveCountry", "Admin", FormMethod.Post))
                        {
                            <input type="hidden" name="Country_Id" value="@Model.Country_Id" />
                            <div class="row">
                                <div class="col-lg-2">
                                    <label>
                                        Name
                                    </label>
                                </div>

                                <div class="col-lg-6">
                                    <input type="text" class="form-control" placeholder="Enter Name" name="Country_Name" value="@Model.Country_Name" />
                                </div>
                            </div>

                            <br />                                                                                   

                            <div class="row">
                                <div class="col-lg-2">

                                </div>

                                <div class="col-lg-6">
                                    <div class="col-lg-3">
                                        <button type="submit" class="btn btn-lg btn-primary">
                                            Save
                                        </button>
                                    </div>

                                    <div class="col-lg-6">
                                        <button type="button" class="btn btn-lg btn-default" onclick="location.href='@Url.Action("Countries", "Admin")'">
                                            Cancel
                                        </button>
                                    </div>

                                </div>
                            </div>

                            <br />
                        }
                    }


                </div>
            </div>
        </div>

    </div>
</div>